<?php
include('Mail.php');

$recipients = 'test@test.com.cn';

$headers['From']    = "test <no-reply@test.com>";
$headers['To']      = 'greatguy <test@test.com.cn>';
$headers['Subject'] = 'Test message';
//$headers["Content-Type"] = "text/plain; charset=UTF-8"; 
$headers["Content-Type"] = "text/html; charset=UTF-8"; 
$headers['Cc'] = 'cc@example.com';
$headers['Reply-To'] = 'from@example.com';

$body = '<a href="#">Test message</a>';

$params['host'] = 'smtpout.secureserver.net';
$params['port'] = 25;
$params['auth'] = true;
$params['username'] = "no-reply@test.com";
$params['password'] = "test";
$params['debug'] = false;

// Create the mail object using the Mail::factory method
$mail_object =& Mail::factory('smtp', $params);

$result = $mail_object->send($recipients, $headers, $body);
var_dump($result);

?>
